<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Module: Sass::Tree</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (T)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span>
     &raquo; 
    <span class="title">Tree</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Module: Sass::Tree 
  
  
</h1>

<dl class="box">
  
  
    
  
    
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">/var/www/sass-pages/.sass/lib/sass/tree/node.rb<span class="defines">,<br />
  /var/www/sass-pages/.sass/lib/sass/tree/if_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/for_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/prop_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/root_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/rule_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/each_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/warn_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/trace_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/mixin_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/debug_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/while_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/media_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/return_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/import_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/extend_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/comment_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/content_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/charset_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/function_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/supports_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/variable_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/directive_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/mixin_def_node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/tree/css_import_node.rb</span>
</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>A namespace for nodes in the Sass parse tree.</p>

<p>The Sass parse tree has three states: dynamic, static Sass, and static CSS.</p>

<p>When it&#8217;s first parsed, a Sass document is in the dynamic state. It has nodes for mixin definitions and <code>@for</code> loops and so forth, in addition to nodes for CSS rules and properties. Nodes that only appear in this state are called <strong>dynamic nodes</strong>.</p>

<p><tt><a href="Perform.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/Perform.html" title="Sass::Tree::Visitors::Perform (class)">Tree::Visitors::Perform</a></tt> creates a static Sass tree, which is different. It still has nodes for CSS rules and properties but it doesn&#8217;t have any dynamic-generation-related nodes. The nodes in this state are in the same structure as the Sass document: rules and properties are nested beneath one another. Nodes that can be in this state or in the dynamic state are called <strong>static nodes</strong>; nodes that can only be in this state are called <strong>solely static nodes</strong>.</p>

<p><tt><a href="Cssize.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/Cssize.html" title="Sass::Tree::Visitors::Cssize (class)">Tree::Visitors::Cssize</a></tt> is then used to create a static CSS tree. This is like a static Sass tree, but the structure exactly mirrors that of the generated CSS. Rules and properties can&#8217;t be nested beneath one another in this state.</p>

<p>Finally, <tt><a href="ToCss.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/ToCss.html" title="Sass::Tree::Visitors::ToCss (class)">Tree::Visitors::ToCss</a></tt> can be called on a static CSS tree to get the actual CSS code as a string.</p>

  </div>
</div>
<div class="tags">
  
</div><h2>Defined Under Namespace</h2>
<p class="children">
   
    
      <strong class="modules">Modules:</strong> <a href="Visitors.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors.html" title="Sass::Tree::Visitors (module)">Visitors</a>
    
   
    
      <strong class="classes">Classes:</strong> <a href="CharsetNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/CharsetNode.html" title="Sass::Tree::CharsetNode (class)">CharsetNode</a>, <a href="CommentNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/CommentNode.html" title="Sass::Tree::CommentNode (class)">CommentNode</a>, <a href="ContentNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ContentNode.html" title="Sass::Tree::ContentNode (class)">ContentNode</a>, <a href="CssImportNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/CssImportNode.html" title="Sass::Tree::CssImportNode (class)">CssImportNode</a>, <a href="DebugNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DebugNode.html" title="Sass::Tree::DebugNode (class)">DebugNode</a>, <a href="DirectiveNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html" title="Sass::Tree::DirectiveNode (class)">DirectiveNode</a>, <a href="EachNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/EachNode.html" title="Sass::Tree::EachNode (class)">EachNode</a>, <a href="ExtendNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ExtendNode.html" title="Sass::Tree::ExtendNode (class)">ExtendNode</a>, <a href="ForNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ForNode.html" title="Sass::Tree::ForNode (class)">ForNode</a>, <a href="FunctionNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/FunctionNode.html" title="Sass::Tree::FunctionNode (class)">FunctionNode</a>, <a href="IfNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/IfNode.html" title="Sass::Tree::IfNode (class)">IfNode</a>, <a href="ImportNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ImportNode.html" title="Sass::Tree::ImportNode (class)">ImportNode</a>, <a href="MediaNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/MediaNode.html" title="Sass::Tree::MediaNode (class)">MediaNode</a>, <a href="MixinDefNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/MixinDefNode.html" title="Sass::Tree::MixinDefNode (class)">MixinDefNode</a>, <a href="MixinNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/MixinNode.html" title="Sass::Tree::MixinNode (class)">MixinNode</a>, <a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a>, <a href="PropNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/PropNode.html" title="Sass::Tree::PropNode (class)">PropNode</a>, <a href="ReturnNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ReturnNode.html" title="Sass::Tree::ReturnNode (class)">ReturnNode</a>, <a href="RootNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RootNode.html" title="Sass::Tree::RootNode (class)">RootNode</a>, <a href="RuleNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RuleNode.html" title="Sass::Tree::RuleNode (class)">RuleNode</a>, <a href="SupportsNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/SupportsNode.html" title="Sass::Tree::SupportsNode (class)">SupportsNode</a>, <a href="TraceNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/TraceNode.html" title="Sass::Tree::TraceNode (class)">TraceNode</a>, <a href="VariableNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/VariableNode.html" title="Sass::Tree::VariableNode (class)">VariableNode</a>, <a href="WarnNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/WarnNode.html" title="Sass::Tree::WarnNode (class)">WarnNode</a>, <a href="WhileNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/WhileNode.html" title="Sass::Tree::WhileNode (class)">WhileNode</a>
    
  
</p>




</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:55 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>